<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Predicate (Assertions 1.1 API)
</TITLE>


<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="Predicate (Assertions 1.1 API)";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Predicate.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../oe/assertions/Message.html" title="class in oe.assertions"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../oe/assertions/Predicates.html" title="class in oe.assertions"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../index.html?oe/assertions/Predicate.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Predicate.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
oe.assertions</FONT>
<BR>
Interface Predicate&lt;T&gt;</H2>
<DL>
<DT><DT><B>Type Parameters:</B><DD><CODE>T</CODE> - the type of the input value</DL>
<DL>
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../oe/assertions/predicates/CompositePredicate.html" title="class in oe.assertions.predicates">CompositePredicate</A>, <A HREF="../../oe/assertions/predicates/strings/Contains.html" title="class in oe.assertions.predicates.strings">Contains</A>, <A HREF="../../oe/assertions/predicates/collections/ContainsElementThat.html" title="class in oe.assertions.predicates.collections">ContainsElementThat</A>, <A HREF="../../oe/assertions/predicates/strings/EndsWith.html" title="class in oe.assertions.predicates.strings">EndsWith</A>, <A HREF="../../oe/assertions/predicates/numbers/IsCloseTo.html" title="class in oe.assertions.predicates.numbers">IsCloseTo</A>, <A HREF="../../oe/assertions/predicates/IsEqualTo.html" title="class in oe.assertions.predicates">IsEqualTo</A>, <A HREF="../../oe/assertions/predicates/booleans/IsFalse.html" title="class in oe.assertions.predicates.booleans">IsFalse</A>, <A HREF="../../oe/assertions/predicates/numbers/IsFinite.html" title="class in oe.assertions.predicates.numbers">IsFinite</A>, <A HREF="../../oe/assertions/predicates/numbers/IsGreaterThan.html" title="class in oe.assertions.predicates.numbers">IsGreaterThan</A>, <A HREF="../../oe/assertions/predicates/numbers/IsGreaterThanOrEqualTo.html" title="class in oe.assertions.predicates.numbers">IsGreaterThanOrEqualTo</A>, <A HREF="../../oe/assertions/predicates/numbers/IsInfinite.html" title="class in oe.assertions.predicates.numbers">IsInfinite</A>, <A HREF="../../oe/assertions/predicates/IsInstanceOf.html" title="class in oe.assertions.predicates">IsInstanceOf</A>, <A HREF="../../oe/assertions/predicates/numbers/IsLessThan.html" title="class in oe.assertions.predicates.numbers">IsLessThan</A>, <A HREF="../../oe/assertions/predicates/numbers/IsLessThanOrEqualTo.html" title="class in oe.assertions.predicates.numbers">IsLessThanOrEqualTo</A>, <A HREF="../../oe/assertions/predicates/numbers/IsNaN.html" title="class in oe.assertions.predicates.numbers">IsNaN</A>, <A HREF="../../oe/assertions/predicates/numbers/IsNegative.html" title="class in oe.assertions.predicates.numbers">IsNegative</A>, <A HREF="../../oe/assertions/predicates/numbers/IsNormal.html" title="class in oe.assertions.predicates.numbers">IsNormal</A>, <A HREF="../../oe/assertions/predicates/IsNull.html" title="class in oe.assertions.predicates">IsNull</A>, <A HREF="../../oe/assertions/predicates/numbers/IsPositive.html" title="class in oe.assertions.predicates.numbers">IsPositive</A>, <A HREF="../../oe/assertions/predicates/IsSameAs.html" title="class in oe.assertions.predicates">IsSameAs</A>, <A HREF="../../oe/assertions/predicates/numbers/IsSubnormal.html" title="class in oe.assertions.predicates.numbers">IsSubnormal</A>, <A HREF="../../oe/assertions/predicates/booleans/IsTrue.html" title="class in oe.assertions.predicates.booleans">IsTrue</A>, <A HREF="../../oe/assertions/predicates/numbers/IsZero.html" title="class in oe.assertions.predicates.numbers">IsZero</A>, <A HREF="../../oe/assertions/predicates/strings/Matches.html" title="class in oe.assertions.predicates.strings">Matches</A>, <A HREF="../../oe/assertions/predicates/numbers/RelationPredicate.html" title="class in oe.assertions.predicates.numbers">RelationPredicate</A>, <A HREF="../../oe/assertions/predicates/SatisfiesAllOf.html" title="class in oe.assertions.predicates">SatisfiesAllOf</A>, <A HREF="../../oe/assertions/predicates/SatisfiesAnyOf.html" title="class in oe.assertions.predicates">SatisfiesAnyOf</A>, <A HREF="../../oe/assertions/predicates/strings/StartsWith.html" title="class in oe.assertions.predicates.strings">StartsWith</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public interface <B>Predicate&lt;T&gt;</B></DL>
</PRE>

<P>
A logic predicate that is either true or false for a specified input value.
<P>

<P>
<HR>

<P>

<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../oe/assertions/Predicate.html#check(T)">check</A></B>(<A HREF="../../oe/assertions/Predicate.html" title="type parameter in Predicate">T</A>&nbsp;input)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Applies this predicate to the specified input value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../oe/assertions/Predicate.html#describe(T, oe.assertions.Message)">describe</A></B>(<A HREF="../../oe/assertions/Predicate.html" title="type parameter in Predicate">T</A>&nbsp;input,
         <A HREF="../../oe/assertions/Message.html" title="class in oe.assertions">Message</A>&nbsp;message)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Appends a description of this predicate to the specified message.</TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="check(java.lang.Object)"><!-- --></A><A NAME="check(T)"><!-- --></A><H3>
check</H3>
<PRE>
boolean <B>check</B>(<A HREF="../../oe/assertions/Predicate.html" title="type parameter in Predicate">T</A>&nbsp;input)</PRE>
<DL>
<DD>Applies this predicate to the specified input value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>input</CODE> - the input value
<DT><B>Returns:</B><DD>the result of this predicate when applied to the specified input value</DL>
</DD>
</DL>
<HR>

<A NAME="describe(java.lang.Object,oe.assertions.Message)"><!-- --></A><A NAME="describe(T, oe.assertions.Message)"><!-- --></A><H3>
describe</H3>
<PRE>
void <B>describe</B>(<A HREF="../../oe/assertions/Predicate.html" title="type parameter in Predicate">T</A>&nbsp;input,
              <A HREF="../../oe/assertions/Message.html" title="class in oe.assertions">Message</A>&nbsp;message)</PRE>
<DL>
<DD>Appends a description of this predicate to the specified message.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>input</CODE> - the input value<DD><CODE>message</CODE> - the object to append the description of the predicate
<DT><B>Throws:</B>
<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if <code>message</code> is <code>null</code></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Predicate.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../oe/assertions/Message.html" title="class in oe.assertions"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../oe/assertions/Predicates.html" title="class in oe.assertions"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../index.html?oe/assertions/Predicate.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Predicate.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
Copyright &#169; 2008-2011 Oleg Estekhin. All Rights Reserved.
</BODY>
</HTML>
